package com.hsource.paymentcenter.conf.ali;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author yangYang
 * @version 1.0
 * @date 2020/10/15 11:30
 * @describe
 */
@Component
public class AliPayConfig {


    /** 支付宝支付的appid */
    @Value("${alipayconfig.appId}")
    public String appId ;

    /** 应用私钥 */
    @Value("${alipayconfig.private_key}")
    public String privateKey;

    /**应用公钥**/
    @Value("${alipayconfig.app_public_key}")
    public String appPublicKey;

    /**支付宝公钥**/
    @Value("${alipayconfig.ali_public_key}")
    public String aliPublicKey;

    /**字符集**/
    @Value("${alipayconfig.charset}")
    public String charset;

    /**数据格式**/
    @Value("${alipayconfig.format}")
    public String format;

    /**加密方式**/
    @Value("${alipayconfig.sign_type}")
    public String signType;

    /**回调连接**/
    @Value("${alipayconfig.notifyUrl}")
    public String notifyUrl;

    @Value("${alipayconfig.gatewayUrl}")
    public String gatewayUrl;

    public String getGatewayUrl() {
        return gatewayUrl;
    }

    public void setGatewayUrl(String gatewayUrl) {
        this.gatewayUrl = gatewayUrl;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getAppPublicKey() {
        return appPublicKey;
    }

    public void setAppPublicKey(String appPublicKey) {
        this.appPublicKey = appPublicKey;
    }

    public String getAliPublicKey() {
        return aliPublicKey;
    }

    public void setAliPublicKey(String aliPublicKey) {
        this.aliPublicKey = aliPublicKey;
    }

    public String getCharset() {
        return charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getSignType() {
        return signType;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }
}
